# 导出所有conda环境的pip requirements

# 获取所有环境
$envs = conda env list | Where-Object { $_ -notmatch '^#' -and $_.Trim() -ne '' } | ForEach-Object { $_.Split()[0] }

Write-Host "正在导出所有环境的pip requirements..."

# 为每个环境导出pip requirements
foreach ($env in $envs) {
    Write-Host "正在处理环境: $env"
    python export_pip_requirements.py --env-name $env --output conda_environments/${env}_pip_requirements.txt
}

Write-Host "所有环境的pip requirements已导出完成" 